/**
 * 
 */
package com.leruan.aasimp.service;

import java.util.List;

import com.leruan.aasimp.entity.CarCompanyInfo;
import com.leruan.aasimp.entity.CarInfo;
import com.leruan.aasimp.entity.CarMainInfo;
import com.leruan.aasimp.entity.CarMaintenanceItem;
import com.leruan.aasimp.entity.CarMaintenanceRecord;
import com.leruan.aasimp.entity.CarOdd;
import com.leruan.aasimp.entity.CarParts;
import com.leruan.aasimp.entity.CarPartsImage;
import com.leruan.aasimp.entity.CarPartsSend;

/**
 * @author snow
 *
 */
public interface MaintenanceService {
	
	void addCompany(CarCompanyInfo companyInfo);
	
	void updateCompany(CarCompanyInfo companyInfo);

	CarCompanyInfo getCompanyByID(String userid);
	
	List<CarCompanyInfo> getCompanys();
	
	void addOdd(CarOdd odd);
	
	void updateOdd(CarOdd odd);

	CarOdd getOddByOid(Long oddId);

	List<CarOdd> getOdd(String username);

	List<CarOdd> getOddByCompanyNm(String companyName);

	List<CarOdd> getPassOddByCompanyNm(String companyName);
	
	void addMaintain(CarMaintenanceRecord maintenanceRecord);
	
	void updateMaintain(CarMaintenanceRecord maintenanceRecord);

	CarMaintenanceRecord getMaintainByMID(Long maintainId);

	List<CarMaintenanceRecord> getMaintains();

	List<CarMaintenanceRecord> getMaintainByUm(String handperson);

	void saveMtInfo(CarInfo carInfo);
	
	void addPart(CarParts carParts);

	void addPartsImage(CarPartsImage partsImage);

	List<CarParts> getAllParts();

	void addMtItems(List<CarMaintenanceItem> items);

	void deleteItems(Long maintainId);
	
	List<CarMaintenanceItem> getItemsById(Long maintainId);

	List<CarMaintenanceItem> getAllMtParts();

	List<Long> getAllMaintainIds();

	Long getMtCount();

	List<CarInfo> getAllMtInfo(int pageNo);

	List<CarInfo> getAllPtInfo(int pageNo);

	CarPartsSend getPtByID(String title);

	CarPartsImage getImgByID(String title);

	void addPartSend(CarPartsSend carParts);

	Long getPtCount();

	CarInfo getMtById(String id);

	List<CarMainInfo> getCarsInfoByIdd(String usercard);

	List<CarMaintenanceRecord> getMaintainByVin(String vin);
}
